package com.qingdai.emuns;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serial;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "详细地址DTO")
public class AddressDTO extends Address implements Serializable {
    @Serial
    private static final long serialVersionUID = -7126643153902725621L;

//    @Schema(description = "id")
//    private Integer id;
//
//    @Schema(description = "名称")
//    private String name;
//
//    @Schema(description = "省id")
//    private Integer provinceId;

    //w
    @Schema(description = "省名")
    private String provinceName;

//    @Schema(description = "市id")
//    private Integer cityId;

    //w
    @Schema(description = "市名")
    private String cityName;

//    @Schema(description = "区id")
//    private Integer districtId;

    //w
    @Schema(description = "区名")
    private String districtName;

//    @Schema(description = "详细位置")
//    private String position;
//
//    @Schema(description = "手机号")
//    private Long phoneNumber;
//
//    @Schema(description = "创建此地址的用户id")
//    private Integer userId;


}
